home *** CD-ROM | disk | FTP | other *** search
/ Night Owl 6 / Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso / 037a / svgabgi3.zip / SVGA16.INC < prev    next >
Text File  |  1991-08-05  |  1KB  |  42 lines

  1. (************************************************)
  2. (*                         *)
  3. (*      SuperVGA 16 BGI driver defines    *)
  4. (*        Copyright (c) 1991        *)
  5. (*        Jordan Hargraphix Software        *)
  6. (*                        *)
  7. (************************************************)
  8.  
  9. type DacPalette16 = array[0..15] of array[0..2] of Byte;
  10.  
  11. (* These are the currently supported modes *)
  12. const
  13.   SVGA320x200x16    = 0;    (* 320x200x16 Standard EGA/VGA *)
  14.   SVGA640x200x16    = 1;    (* 640x200x16 Standard EGA/VGA *)
  15.   SVGA640x350x16    = 2;    (* 640x350x16 Standard EGA/VGA *)
  16.   SVGA640x480x16    = 3;    (* 640x480x16 Standard VGA *)
  17.   SVGA800x600x16    = 4;    (* 800x600x16 SuperVGA/VESA *)
  18.   SVGA1024x768x16    = 5;    (* 1024x768x16 SuperVGA/VESA *)
  19.  
  20.   XNOR_PUT        = 5;
  21.   NAND_PUT        = 6;
  22.   NOR_PUT        = 7;
  23.  
  24. (* Setvgapalette sets the entire 16 color palette *)
  25. (* PalBuf contains RGB values for all 16 colors   *)
  26. (* R,G,B values range from 0 to 63               *)
  27. procedure SetVGAPalette16(PalBuf : DacPalette16);
  28. var
  29.   Reg : Registers;
  30.  
  31. begin
  32.   reg.ax := $1012;
  33.   reg.bx := 0;
  34.   reg.cx := 16;
  35.   reg.es := Seg(PalBuf);
  36.   reg.dx := Ofs(PalBuf);
  37.   intr($10,reg);
  38. end;
  39.  
  40.  
  41.  
  42.